package com.medicine.manage.block.service;



import com.medicine.manage.block.entity.WeBaseResult;
import com.medicine.manage.domain.Order;


/**
 * 区块链订单Service接口
 * @author admin
 * @date 2024-10-2
 *
 */
public interface IBlockOrderService {
    /**
     * 新增订单数据
     * @param order 订单
     * @param deptId 部门ID
     * @param optionUserId 订单操作者
     * @return @code WeBaseResult
     */
    public WeBaseResult insertOrder(Order order, Long deptId, Long optionUserId);

    /**
     * 根据订单Id 在区块链中查询订单
     * @param orderId
     * @return WeBaseResult
     */
    public WeBaseResult selectOrderByOrderId(Long orderId, Long deptId ,Long optionUserId);

    /**
     * 更新订单数据
     * @param order
     * @param deptId
     * @param optionUserId
     * @return WeBaseResult
     */
    public WeBaseResult updateOrder(Order order, Long deptId, Long optionUserId);
}
